//
//  UIImageView+QLXExt.h
//  fcuhConsumer
//
//  Created by 邱良雄 on 15/8/7.
//  Copyright (c) 2015年 avatar. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <UIImageView+WebCache.h>

typedef enum : NSUInteger {
    ImageViewAnimationNone,
    ImageViewAnimationFade
} ImageViewAnimationType;
@interface UIImageView(CYExt)

+ (instancetype)createWithImageName:(NSString* )name;
+ (instancetype)createWithAspectFitImageName:(NSString* )name;
+ (instancetype)create;
+ (instancetype)createAspectFit;
+ (instancetype)createAspectFill;

-(void) setImageWithURL:(NSString *) url placeholderImage:(UIImage *)placeholder animationType:(ImageViewAnimationType) type;
+(UIImage *)boxblurImage:(UIImage *)image withBlurNumber:(CGFloat)blur;

//下载图片相关
//SDWebImageCompletionBlock ->SDExternalCompletionBlock (库更新了)
//性能问题,暂时不用
//- (void)xmg_setOriginImage:(NSString *)originImageURL thumbnailImage:(NSString *)thumbnailImageURL placeholder:(UIImage *)placeholder completed:(SDExternalCompletionBlock)completedBlock;

- (void)imageUrl:(NSString *)imageUrl placeholder:(UIImage *)placeholder;

- (void)setCircleHeader:(NSString *)headerUrl;
- (void)setHeader:(NSString *)headerUrl;

@end
